import { mock } from 'mockjs';
//  首页
mock('/navs', 'get', {
  'data|10': [
    {
      id: '@id',
      'title|+1': ['超市', '买菜', '水果', '鲜花', '送药上门', '家居时尚', '烘培蛋糕', '签到', '鲜豆庄园', '领现金'],
      'imgUrl|+1': ['/uploads/c89876ee93a3f18a.png', '/uploads/5d79f0aa0409960c.png', '/uploads/f7bb4a0bff29de56.png', '/uploads/4e3ede9e1046b17f.png', '/uploads/7d8eb3bd65d9e457.png', '/uploads/3e9a7e6117c23567.png', '/uploads/e977ade50ca758d3.png', '/uploads/4639f5e3ed6e1463.png', '/uploads/6fc2fcc20a9f3c41.png', '/uploads/a5eab0f36b75b671.png'],
    },
  ],
});

mock('/keyword', 'get', {
  'data|6': [
    {
      id: '@id',
      'title|+1': ['牛奶', '方便面', '沙拉蔬菜', '卫生巾', '旺旺牛奶', '洗衣液'],
    },
  ],
});

mock('/LBfirstImages', 'get', {
  'data|2': [
    {
      id: '@id',
      'imgUrl|+1': ['./uploads/9113b5c944aa28b5.gif', './uploads/16e42048bd91d623.png'],
    }],
});

mock('/LBsecondImags', 'get', {
  'data|10': [
    {
      id: '@id',
      'imgUrl|+1': ['/uploads/b97ac1a65ea3c2db.png', '/uploads/8b7cde8540d67cde.png', '/uploads/08291093e2fce987.jpg', '/uploads/8bae2841ad9d3c1e.png', '/uploads/0fc14a4d5e84bbfd.png',
        '/uploads/96680a05ecacd0c1.png', '/uploads/0bcf85021c4d1adf.png', '/uploads/7c8bbf1366f36762.png', '/uploads/62a9d4313a935e33.png', '/uploads/906da07e103be9fa.jpg',
      ],
    }],
});

mock('/Discountzone', 'get', {
  'data|4': [
    {
      id: '@id',
      'title1|+1': ['沃尔玛', '防护口罩', '永辉超市', '叠加减16'],
      'title2|+1': ['纸巾99减30', '限时抢购', '轻食迎春', '粑粑柑0.1'],
      'imgUrl|+1': ['/uploads/b8ffb4b7783693e4.png', '/uploads/fa31b493f239ad9e.png', '/uploads/77c6030bf40ac9d6.png', '/uploads/3d32e2306af8adc6.png'],
    },
  ],
});

mock('/Flashsale', 'get', {
  'data|10': [
    {
      id: '@id',
      'title1|+1': ['秒杀7.62折', '秒杀0.16折', '秒杀1.52折', '秒杀8.07折', '秒杀8.85折', '秒杀6.33折',
        '秒杀1.13折', '秒杀7.23折', '秒杀2.24折', '秒杀5.44折'],
      'title2|+1': ['蒙牛特仑苏纯牛奶(礼箱)', '【1个春见】B级-耙耙柑（中）不少于190g/个', '新鲜 菠菜  约200-250g/份',
        '伊利 金典纯牛奶 250ml*12', '妙可维 波兰进口 纯牛奶（脱脂牛奶） 1L（新旧包装随机发货）', '金龙鱼 阳光欧洲原料葵花籽油 900ml （新旧包装随机发货）',
        '沃柑 橘子  约250g/份', '优选-泰国 桂圆  约250-300g/份', '草莓  约250g/份', '芦柑  约450-500g/份'],
      'title3|+1': ['￥49.5', '￥0.1', '￥0.9', '￥39.9', '￥6.9', '￥10',
        '￥0.99', '￥7.8', '￥2.9', '￥7.5'],
      'title4|+1': ['￥65', '￥6.5', '￥5.94', '￥49.5', '￥7.8', '￥15.8',
        '￥8.8', '￥10.8', '￥13', '￥13.8'],
      'imgUrl|+1': ['/uploads/1b054c6429395089.jpg', '/uploads/ff3480d1d7bd909c.png', '/uploads/450ccd7ce590409b.jpg', '/uploads/4fcbd5129933bfdc.jpg',
        '/uploads/12caa8a95852379d.jpg', '/uploads/c403e754cda90da7.jpg', '/uploads/184ebd85de33c1ac.jpg', '/uploads/b53f874582bd0407.jpg', '/uploads/58a3b2b0Nd4649412.jpg',
        '/uploads/57397d89Na2b570fc.jpg'],
      'imgUrl1|+1': ['/uploads/f2cb671f66f696c5.jpg', '/uploads/b7adc6bf563cda97.jpg', '/uploads/f71e357d8183470c.jpg', '/uploads/5015d5f6a2eb1edc.png',
        '/uploads/5015d5f6a2eb1edc.png', '/uploads/5015d5f6a2eb1edc.png', '/uploads/253361eaa4fd47e7.jpg', '/uploads/253361eaa4fd47e7.jpg', '/uploads/6b3d0173b3ab0a5a.jpg',
        '/uploads/6b3d0173b3ab0a5a.jpg'],
    },
  ],
});

mock('/LBthirdImages', 'get', {
  'data|4': [
    {
      id: '@id',
      'imgUrl|+1': ['/uploads/6de8026f6dc541fe.jpg', '/uploads/6b5103c9e30fd1b8.png', '/uploads/434ed5897803e4d7.png', '/uploads/c3e239cb39403866.jpg'],
    }],
});

mock('/shop', 'get', {
  'data|5': [
    {
      id: '@id',
      'title|+1': ['沃尔玛-新街口店', '华润苏果-文昌巷社区店', '南京苏果科巷生活超市', '永辉超市-南京秦淮茂业店',
        '上元堂-莫愁路点',
      ],
      'title1|+1': ['4.8', '4.8', '4.6', '3.7', '5.0'],
      'title2|+1': ['月售1万+', '月售1千+', '月售307', '月售5千+', '月售309'],
      'title3|+1': ['95分钟', '54分钟', '64分钟', '60分钟', '39分钟'],
      'title4|+1': ['1.1km', '355m', '442m', '2.8km', '2.5km'],
      'title5|+1': ['起送￥0', '起送￥0', '起送￥0', '起送￥0', '起送￥0'],
      'title6|+1': ['基础运费￥4', '卷后满79基础运费￥1', '基础运费￥4', '基础运费￥5', '基础运费￥4'],
      'title7|+1': ['领20元运费券', '领15元运费券', '领15元运费券', '领10元运费券', '领60元券'],
      'title8|+1': ['领15元叠加券', '领10元叠加券', '领10元叠加券', '领30元叠加券', '领50元券'],
      'title9|+1': ['领125元券', '领3元运费券', '领5元运费券', '领25元叠加券', '领30元券'],
      'title10|+1': ['下单送砍价神刀，参与砍价最高可看50%', '金龙鱼大米满88减10',
        '金龙鱼大米满88减10', '商家会员满89元减4元运费(每月2次),满99元减4元运费(每月2次)', '下单送砍价神刀，参与砍价最高可看50%',
      ],
      'title11|+1': ['附近还有1家', '附近还有5家', '附近还有5家', '附近还有2家', '附近还有2家'],
      'imgUrl|+1': ['/uploads/5015d5f6a2eb1edc.png', '/uploads/f2cb671f66f696c5.jpg', '/uploads/f2ff7d208b60d59d.jpg', '/uploads/b7cb19c98ec053d8.png',
        '/uploads/f252ae8f0c8aaf61.jpg',
      ],
    },
  ],
});

//  订单
mock('/itemsImage', 'get', {
  'data|4': [
    {
      id: '@id',
      'imgUrl|+1': ['/uploads/9e3b42b1fae49b71.jpg', '/uploads/9a6f801999abf213.jpg', '/uploads/632ce1796cd7d70e.jpg', '/uploads/632ce1796cd7d70e.jpg'],
    }],
});

mock('/CommodityInformation', 'get', {
  'data|3': [
    {
      id: '@id',
      'title|+1': ['￥24.2', '共3件', '达达专送'],
    },
  ],
});

//  购物车
mock('/ShoppingitemsInformation', 'get', {
  'data|2': [
    {
      id: '@id',
      'title|+1': ['￥2.5', '￥1.9'],
      'imgUrl|+1': ['/uploads/3c0d37208fcf8687.jpg', '/uploads/57db50f9a6fdfc66.jpg'],
    }],
});

mock('/ShoppingitemsInformation2', 'get', {
  'data|3': [
    {
      id: '@id',
      'title|+1': ['￥7.5', '￥8.5', '￥3.4'],
      'imgUrl|+1': ['/uploads/9e3b42b1fae49b71.jpg', '/uploads/632ce1796cd7d70e.jpg', '/uploads/9a6f801999abf213.jpg'],
    }],
});

// 我的
mock('/MywalletImage', 'get', {
  'data|3': [
    {
      id: '@id',
      'imgUrl|+1': ['/uploads/MywalletImage1.jpg', '/uploads/MywalletImage2.jpg', '/uploads/MywalletImage3.jpg'],
    }],
});

mock('/FunctionalOptions', 'get', {
  'data|14': [
    {
      id: '@id',
      'title|+1': ['我的关注', '我的评价', '我的地址', '我的卡包', '红包套餐', '我的奖励金', '签到有惊喜',
        '签到有惊喜', '售后退款', '客服与帮助', '关于我们', '金融权益', '年轻人专属', '商家入驻',
      ],
      'imgUrl|+1': ['/uploads/FunctionalOptions1.png', '/uploads/FunctionalOptions2.png', '/uploads/FunctionalOptions3.png', '/uploads/FunctionalOptions4.png', '/uploads/FunctionalOptions5.png',
        '/uploads/FunctionalOptions6.png', '/uploads/FunctionalOptions7.png', '/uploads/FunctionalOptions8.png', '/uploads/FunctionalOptions9.png', '/uploads/FunctionalOptions10.png',
        '/uploads/FunctionalOptions11.png', '/uploads/FunctionalOptions12.png', '/uploads/FunctionalOptions13.png', '/uploads/FunctionalOptions14.png',
      ],
    },
  ],
});

// 登录
mock('/RelatedProducts', 'get', {
  'data|2': [
    {
      id: '@id',
      'title|+1': ['QQ', '微信'],
      'imgUrl|+1': ['/uploads/QQ.png', '/uploads/WX.png'],
    },
  ],
});

// 发现
mock('/followShopName', 'get', {
  'data|9': [
    {
      id: '@id',
      'title|+1': ['华润苏果-文昌巷社区店'],
      'title1|+1': ['2020-03-15'],
      'title2|+1': ['门店大促销，大家都在买买买，你还在等什么，快去抢购吧~'],
      'imgUrl|+1': ['/uploads/f2cb671f66f696c545.jpg'],
    },
  ],
});

mock('/followShopItemsImage', 'get', {
  'data|9': [
    {
      id: '@id',
      'title|+1': ['￥18.8', '￥3.5', '￥4.9', '￥6.9', '￥4.8', '￥7.5', '￥2.9', '￥3', '￥3.8'],
      'imgUrl|+1': ['/uploads/a6a694359ad00f01.jpg', '/uploads/da015c6d678cee3e.jpg', '/uploads/75bb1ea514533b82.jpg', '/uploads/b0642d8e368f1abd.jpg',
        '/uploads/f5665b1b0876302d.jpg', '/uploads/ecbccf0140894467.jpg', '/uploads/be69a29763fe0798.jpg', '/uploads/eee7ee00e82c8c9e.jpg', '/uploads/bb23701d0b55fbeb.jpg'],
    },
  ],
});

// 商品详情
mock('/ListOfSpeciesTitle', 'get', {
  'data|25': [
    {
      id: '@id',
      'title|+1': ['秒杀', '直降', '宅家防疫', '新鲜水果', '时令蔬菜', '肉蛋家禽', '水产海鲜', '牛奶酸奶',
        '冷藏冷冻', '熟食快餐', '面包蛋糕', '休闲食品', '中外名酒', '水饮冲调', '粮油副食', '干货杂粮',
        '进口商品', '纸品家清', '日用百货', '个护美妆', '母婴呵护', '宠物之家', '文娱用品',
        '服装家纺', '保健食品'],
    },
  ],
});

// 购买
mock('/PurchaseDetailsNodes', 'get', {
  'data|25': [
    {
      id: '@id',
      'imgUrl|+1': ['/uploads/4fcbd5129933bfdc1.jpg', '/uploads/57db50f9a6fdfc661.jpg', '/uploads/151acfc723126d04.jpg',
        '/uploads/e65b9074d13c1977.jpg', '/uploads/0264abeefc788bb9.jpg'],
      'title|+1': ['伊利 金典纯牛奶 250ml*12', '包装小葱 约100g', 'great value 越南进口 冷冻生巴沙鱼柳 400g', '大包装土豆 约1kg',
        '圣农 黑椒味鸡块 500g'],
      'title1|+1': ['月售291 好评98%', '月售1219 好评86%', '月售39 好评100%', '月售933 好评81%',
        '月售70 好评80%'],
      'title2|+1': ['秒杀8.07折', '秒杀4.88折', '秒杀7.48折', '秒杀8.74折', '秒杀5.95折'],
      'price|1-100.2': 0,
      'sprice|1-100.2': function () {
        return this.price - 1;
      },
      'nums|1-10': 0,
    },
  ],
});
